<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			//声明数组，并存储若干水果，计算其长度，并遍历打印输出。
			let sg = ['苹果','香蕉','梨子','圣女果','哈密瓜','西瓜','榴莲'];
			for (let i in sg) {
				document.write(sg[i]);
				document.write("<br />")
			}
			
		</script>
	</body>
</html>
